package com.zzyl.nursing.controller;

import com.zzyl.common.core.domain.R;
import com.zzyl.nursing.dto.DeviceDataPageDto;
import com.zzyl.nursing.service.IDeviceDataService;
import com.zzyl.nursing.vo.DeviceDataPageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/nursing/data")
public class DeviceDataController {
    @Autowired
    private IDeviceDataService deviceDataService;

    @GetMapping("/list")
    public R<DeviceDataPageVo> list(DeviceDataPageDto dto) {
        return R.ok(deviceDataService.page(dto));
    }
}
